Math.pow(4,2)
Math.pow(5,2)

function makpow(power){
    return function(number){
        return Math.pow(number,power)
    }
}
let pow2=makpow(2)
let pow3=makpow(3);

console.log(pow2(2))
console.log(pow2(3))
console.log(pow3(2))
console.log(pow3(3))


function makeMoney(base){
    return function (number){
        return base+number
    }
}

let money1=makeMoney(10000);
let money2=makeMoney(12000)
console.log(money1(2000))
console.log(money2(3000))